package robo

import "gitee.com/wcs2/common/enums"

type roboActionReqStatusStruct struct {
	R2_SEND       enums.PositionEnum
	SENDED        enums.PositionEnum
	RECEIVED      enums.PositionEnum
	PICK_BEGAN    enums.PositionEnum
	PICK_FINISHED enums.PositionEnum
	DROP_BEGAN    enums.PositionEnum
	DROP_FINISHED enums.PositionEnum
	CANCELED      enums.PositionEnum
	ERROR         enums.PositionEnum
}

// 机械臂动作请求记录状态枚举
var RoboActionReqStatusEnum = &roboActionReqStatusStruct{
	R2_SEND: enums.PositionStruct{
		Code:    "R2_SEND",
		Des:     "待发送",
		PlcCode: 0,
	}, SENDED: enums.PositionStruct{
		Code:    "SENDED",
		Des:     "已发送请求",
		PlcCode: 1,
	}, RECEIVED: enums.PositionStruct{
		Code:    "RECEIVED",
		Des:     "任务已接收",
		PlcCode: 2,
	}, PICK_BEGAN: enums.PositionStruct{
		Code:    "PICK_BEGAN",
		Des:     "抓取任务开始",
		PlcCode: 10,
	}, PICK_FINISHED: enums.PositionStruct{
		Code:    "PICK_FINISHED",
		Des:     "抓取任务完成",
		PlcCode: 11,
	}, DROP_BEGAN: enums.PositionStruct{
		Code:    "DROP_BEGAN",
		Des:     "放下任务开始",
		PlcCode: 20,
	}, DROP_FINISHED: enums.PositionStruct{
		Code:    "DROP_FINISHED",
		Des:     "放下任务完成",
		PlcCode: 21,
	}, CANCELED: enums.PositionStruct{
		Code:    "CANCELED",
		Des:     "任务取消",
		PlcCode: 99,
	}, ERROR: enums.PositionStruct{
		Code:    "ERROR",
		Des:     "任务失败",
		PlcCode: 100,
	},
}
